// 例子49

{
    // main.js
    import {firstName, lastName, year, mul, Point} from './profile.js';

    function setName(element) {
        element.textContent = firstName + ' ' + lastName;
    }
}

console.log('----------------------------------');

{
    // import-default.js
    import customName from './export-default';
    customName(); // 'foo'
}

console.log('----------------------------------');

{
    import * as circle from './circle';
    console.log('圆面积：' + circle.area(4));
    console.log('圆周长：' + circle.circumference(14));
}